Add dispatch info <id> for a concise session summary#313
Merged
Conversation
`export` dumps a whole session; there was no quick way to see just its shape. `info <id>` prints a one-screen summary: ID, summary, repository, branch, directory, host, created/updated/last-active timestamps, and counts for turns, files, checkpoints, and references grouped into commits, PRs, and issues. Empty optional fields are omitted; counts always print. `--json` emits the same data for scripting. The detail loader is shared with export, so info adds no new store code. Wired into handleArgs, the usage banner, and all four shell completion lists. Also drains the stdout pipe on a goroutine in TestPrintUsage_Output so the grown usage banner cannot deadlock on the Windows pipe buffer. Closes #312 Co-authored-by: Copilot App <[email protected]>
# Conflicts: # cmd/dispatch/cli.go # cmd/dispatch/main.go # cmd/dispatch/main_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
dispatch info <id>, a concise one-screen summary of a single session.exportdumps every turn;infoshows just the shape.What changed
info <id>prints ID, summary, repository, branch, directory, host, created/updated/last-active timestamps, and counts for turns, files, checkpoints, and references grouped into commits, PRs, and issues.info <id> --jsonemits the same data as a machine-readable object.export, so no new store code is added.handleArgs, the usage banner, and all four shell completion lists (bash, zsh, fish, powershell).Testing
go build ./...,go vet ./...,go test ./... -count=1all green.golangci-lint runreports 0 issues;mage deadcodeOK.Also drains the stdout pipe on a goroutine in
TestPrintUsage_Outputso the grown usage banner cannot deadlock on the smaller Windows pipe buffer.Closes #312